package com.zt.bigdata.vertx.service;

import io.vertx.core.Handler;
import io.vertx.ext.web.RoutingContext;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service("methodNotFoundHandler")
public class MethodNotFoundHandler implements Handler<RoutingContext> {

    @Override
    public void handle(RoutingContext routingContext) {
        routingContext.request().response().setStatusCode(405).end("Method Not Allowed");
    }

}
